package com.lam.smartbutlerv4.ui;
/*
 *  project name:       SmartButlerV5
 *  pakcage name:       com.lam.smartbutlerv4.ui
 *  file name:          CitiHome
 *  create date:        2019/2/17 21:22
 *  creator:            Luan Xiyuan
 *  description:        TODO
 */

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

import com.lam.smartbutlerv4.R;
import com.lam.smartbutlerv4.utils.StatusBarUtils;

public class CitiHome extends AppCompatActivity implements View.OnClickListener {

    private Button btn_coles_cld;
    private Button btn_coles_cld2;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_citi_home);

        initView();
    }

    private void initView() {
        StatusBarUtils.setWindowStatusBarColor(this, R.color.bg_toolbar_default);
        btn_coles_cld = findViewById(R.id.btn_coles_cld);
        btn_coles_cld.setOnClickListener(this);

        btn_coles_cld2 = findViewById(R.id.btn_coles_cld2);
        btn_coles_cld2.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.btn_coles_cld:
                startActivity(new Intent(CitiHome.this, ColesCLD1.class));
//                startActivity(new Intent(CitiHome.this, ColesCard.class));
                break;
            case R.id.btn_coles_cld2:
                startActivity(new Intent(CitiHome.this, ColesACR1.class));
                break;
        }
    }

    //back forbidden
    @Override
    public void onBackPressed() {
//        super.onBackPressed();
    }
}
